package com.mapper.infocenter;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.po.LoginHistoryInfo;
import com.po.MyDownloadInfo;
import com.po.PointLimitInfo;
import com.po.RulePointInfo;

public interface RulePointMapper {
	public List<RulePointInfo> getRulePointList(RulePointInfo rulePointInfo);

	public int getRulePointCount(RulePointInfo rulePointInfo);
	
	public int getRulePointNumber(String description);

	public int updateUserpoint(@Param("user_id")String userid,@Param("point")int point);
	
	public List<LoginHistoryInfo> getLoginHistory(LoginHistoryInfo loginHistoryInfo);
	
	public List<MyDownloadInfo> getMyDownloadList(@Param("userid")String userid,@Param("infoid")String infoid);
	
	public PointLimitInfo getPointLimit(@Param("userid")String userid);
	
	public int addPointLimit(PointLimitInfo pointLimitInfo);
	
	public int updatePointLimit(@Param("userid")String userid,@Param("point")int point);
	
	public int getRegisterPoint(String roletype);
	
	public int getPersonalPoint(String userid);
}
